package com.ly.video.api.video.entity;

import java.util.Objects;

public class VideoEntity {

    private Integer id;
    private String url;
    private String icon;
    private Integer likec;
    private Integer share;
    private String content;
    private String name;

    public VideoEntity(Integer id, String url, String icon, Integer likec, Integer share, String content, String name) {
        this.id = id;
        this.url = url;
        this.icon = icon;
        this.likec = likec;
        this.share = share;
        this.content = content;
        this.name = name;
    }

    public VideoEntity() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getLikec() {
        return likec;
    }

    public void setLikec(Integer likec) {
        this.likec = likec;
    }

    public Integer getShare() {
        return share;
    }

    public void setShare(Integer share) {
        this.share = share;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof VideoEntity)) return false;
        VideoEntity entity = (VideoEntity) o;
        return Objects.equals(getId(), entity.getId()) && Objects.equals(getUrl(), entity.getUrl()) && Objects.equals(getIcon(), entity.getIcon()) && Objects.equals(getLikec(), entity.getLikec()) && Objects.equals(getShare(), entity.getShare()) && Objects.equals(getContent(), entity.getContent()) && Objects.equals(getName(), entity.getName());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getUrl(), getIcon(), getLikec(), getShare(), getContent(), getName());
    }

    @Override
    public String toString() {
        return "VideoEntity{" +
                "id=" + id +
                ", url='" + url + '\'' +
                ", icon='" + icon + '\'' +
                ", likec=" + likec +
                ", share=" + share +
                ", content='" + content + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
